package org.dfzt.modules.online.config.util;

import java.util.Comparator;

import org.dfzt.modules.online.cgform.entity.OnlCgformField;


public class f extends Object implements Comparator<OnlCgformField> {
    @Override
    public int compare(OnlCgformField paramOnlCgformField1, OnlCgformField paramOnlCgformField2) {
        if (paramOnlCgformField1 == null || paramOnlCgformField1.getOrderNum() == null || paramOnlCgformField2 == null || paramOnlCgformField2.getOrderNum() == null) {
            return -1;
        }
        Integer integer1 = paramOnlCgformField1.getOrderNum();
        Integer integer2 = paramOnlCgformField2.getOrderNum();
        return (integer1.intValue() < integer2.intValue()) ? -1 : ((integer1.equals(integer2)) ? 0 : 1);
    }
}
